import os

def files_in_fir(dir):
    assert os.path.isdir(dir),f"{dir} is not a directory"
    files = sorted(os.listdir(dir))
    return files